<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>项目投标列表</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }
        body {
            font-family: "Microsoft YaHei", sans-serif;
            background-color: #f5f5f5;
        }
        .container {
            width: 100%;
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }
        .header {
            display: flex;
            margin-bottom: 20px;
            align-items: center;
        }
        .btn {
            padding: 6px 12px;
            margin-right: 10px;
            border: 1px solid #ccc;
            background-color: #fff;
            border-radius: 4px;
            cursor: pointer;
            display: flex;
            align-items: center;
        }
        .btn i {
            margin-right: 4px;
        }
        .btn-primary {
            background-color: #1890ff;
            color: white;
            border-color: #1890ff;
        }
        .search-box {
            display: flex;
            align-items: center;
            margin-bottom: 20px;
        }
        .search-input {
            width: 200px;
            padding: 6px 10px;
            border: 1px solid #ccc;
            border-radius: 4px;
            margin-right: 10px;
        }
        .search-btn {
            background-color: transparent;
            border: none;
            cursor: pointer;
        }
        table {
            width: 100%;
            border-collapse: collapse;
            background-color: #fff;
        }
        th, td {
            padding: 12px 15px;
            text-align: left;
            border-bottom: 1px solid #eee;
        }
        th {
            background-color: #fafafa;
            font-weight: normal;
        }
        .status-success {
            color: #52c41a;
        }
        .status-pending {
            color: #faad14;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <button class="btn btn-primary" onclick="location.href='new/join.html'">
                <i>+</i> 新增
            </button>
            <button class="btn">
                <i>⚙</i> 编辑
            </button>
            <button class="btn">
                <i>⊖</i> 删除
            </button>
            <button class="btn">
                <i>↺</i> 撤回
            </button>
        </div>
        
        <div class="search-box">
            <span>项目名称：</span>
            <input type="text" class="search-input">
            <button class="search-btn">🔍</button>
        </div>
        
        <table>
            <thead>
                <tr>
                    <th>序号</th>
                    <th>项目编号</th>
                    <th>项目名称</th>
                    <th>项目类型</th>
                    <th>采购方式</th>
                    <th>截止时间</th>
                    <th>创建时间</th>
                    <th>状态</th>
                </tr>
            </thead>
            <tbody>
                <tr>
                    <td>1</td>
                    <td>PRJ20220001</td>
                    <td>竞价采购（公开询比价）</td>
                    <td>软件开发</td>
                    <td>公开询价</td>
                    <td>2022-12-31</td>
                    <td>2022-10-15</td>
                    <td class="status-success">已授交</td>
                </tr>
                <tr>
                    <td>2</td>
                    <td>PRJ20220002</td>
                    <td>公开招标</td>
                    <td>硬件采购</td>
                    <td>公开招标</td>
                    <td>2022-12-25</td>
                    <td>2022-10-10</td>
                    <td class="status-pending">未授交</td>
                </tr>
                <tr>
                    <td>3</td>
                    <td>PRJ20220003</td>
                    <td>询比采购（公开竞标）</td>
                    <td>系统集成</td>
                    <td>竞争性谈判</td>
                    <td>2022-12-20</td>
                    <td>2022-10-05</td>
                    <td class="status-pending">未授交</td>
                </tr>
            </tbody>
        </table>
    </div>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            // 添加新增按钮的点击事件
            document.querySelector('.btn-primary').addEventListener('click', function() {
                window.location.href = 'new/join.html';
            });
        });
    </script>
</body>
</html>
